from django.contrib import admin
from django import forms
from .models import news

class newsAdminForm(forms.ModelForm):

    class Meta:
        model = news
        fields = '__all__'


class newsAdmin(admin.ModelAdmin):
    form = newsAdminForm
    list_display = ['name']
    # readonly_fields = ['name']

admin.site.register(news, newsAdmin)


